package com.crm.springcloudconfig3344;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.config.server.EnableConfigServer;

/** config服务端
 *
 * 访问路径：
 * http://config-3344.com:3344/application-dev.yml  -->返回dev环境
 * http://config-3344.com:3344/application-test.yml -->返回test环境
 * http://config-3344.com:3344/application-bucunzai.yml -->不存在的yml
 *
 * 读取yml的规则
 * /{application}/{profile}[/{label}] --> http://config-3344.com:3344/application/dev/master
 * /{application}-{profile}.yml    -->  http://config-3344.com:3344/application-dev.yml
 * /{label}/{application}-{profile}.yml --> http://config-3344.com:3344/master/application-dev.yml
 */

/** config客户端
 *
 *
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableConfigServer
public class SpringcloudConfig3344Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudConfig3344Application.class, args);
    }

}
